package com.sise.wangzhan.main;

import com.sise.wangzhan.client.JsonClient;
import feign.Feign;
import feign.gson.GsonDecoder;

/**
 * @Classname JsonMain
 * @Description TODO
 * @Date 2020/4/9 10:01
 * @Created by wangzhan
 */
public class JsonMain {
    public static void main(String[] args) {

        JsonClient jsonClient = Feign.builder()
                .decoder(new GsonDecoder())
                .target(JsonClient.class, "http://localhost:8080");

        System.out.println(jsonClient.getStu(901));
    }
}
